package com.bit.cfdi.web.dao.impl;

import java.util.List;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.bit.cfdi.web.dao.ValorCampoExtraComprobanteDAO;
import com.bit.cfdi.web.domain.ValorCampoExtraComprobante;

@Repository
public class ValorCampoExtraComprobanteDAOImpl extends 
	HibernateDaoSupport implements ValorCampoExtraComprobanteDAO {

	@Autowired
	public void init(final SessionFactory sessionFactory) {
		setSessionFactory(sessionFactory);
	}
	
	@Override
	@Transactional public List<ValorCampoExtraComprobante> getByAll() throws DataAccessException {
		return null;
	}

	@Override	
	@Transactional public List<ValorCampoExtraComprobante> getById(Long id) throws DataAccessException {
			return null;
	}

	@Override 
	@Transactional public void save(ValorCampoExtraComprobante comprobante) throws DataAccessException {
		getHibernateTemplate().saveOrUpdate(comprobante);
	}

}